package cn.com.dcsgo.library.client.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

/**
 *
 *
 * @author Dcsgo
 * @since 2024/9/3 08:53
 */

@Getter
@AllArgsConstructor
public enum ResponseStatus {

    SUCCESS("200", "成功"),
    FAIL("400", "请求错误"),

    HTTP_STATUS_200("200", "成功"),
    HTTP_STATUS_400("400", "请求错误"),
    HTTP_STATUS_401("401", "未授权访问"),
    HTTP_STATUS_403("403", "禁止访问"),
    HTTP_STATUS_500("500", "服务器异常");

    public static final List<ResponseStatus> HTTP_STATUS_ALL = List.of(HTTP_STATUS_200, HTTP_STATUS_400, HTTP_STATUS_401, HTTP_STATUS_403, HTTP_STATUS_500);

    /**
     * 状态码
     */
    private final String responseCode;

    /**
     * 状态码的描述说明
     */
    private final String description;

}